package com.studio701.carguard.mapper;

import com.studio701.carguard.pojo.UserContact;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xjc
 * @since 2022-03-28
 */
public interface UserContactMapper extends BaseMapper<UserContact> {

    boolean updateContactByUserId(@Param("userContact") UserContact userContact);

    boolean removeByUserId(Integer id);

    List<UserContact> getAllContactByUserId(Integer id);
}
